<?php
error_reporting(0);
$isadmin=1; 
include_once '../comm/config.php';
include_once 'check.php';
//请不要随意修改代码，凡是随意修改代码造成的一切后果均由修改者本人承担，多多不再提供技术支持	
$msg_zhuce=$_POST['msg_zhuce']; 
$msg_zhucesong =$_POST['msg_zhucesong']; 
$msg_tabao =$_POST['msg_tabao']; 
$msg_taobaotuiguang =$_POST['msg_taobaotuiguang']; 
$msg_tixianok =$_POST['msg_tixianok']; 
$msg_tixianfail =$_POST['msg_tixianfail']; 
$msg_deltrade =$_POST['msg_deltrade']; 
$msg_deltradetuiguang =$_POST['msg_deltradetuiguang']; 

$link = mysql_connect($dbserver, $dbuser, $dbpass);
if (!$link) {die(ERR_DB);}
mysql_select_db($dbname);
mysql_query("set names utf8");
$q = "update ".$BIAOTOU."msgset set msg='".$msg_zhuce."' where type='zhuce'";
mysql_query($q);
$q = "update ".$BIAOTOU."msgset set msg='".$msg_zhucesong."' where type='zhucesong'";
mysql_query($q);
$q = "update ".$BIAOTOU."msgset set msg='".$msg_tabao."' where type='tabao'";
mysql_query($q);
$q = "update ".$BIAOTOU."msgset set msg='".$msg_taobaotuiguang."' where type='taobaotuiguang'";
mysql_query($q);
$q = "update ".$BIAOTOU."msgset set msg='".$msg_tixianok."' where type='tixianok'";
mysql_query($q);
$q = "update ".$BIAOTOU."msgset set msg='".$msg_tixianfail."' where type='tixianfail'";
mysql_query($q);
$q = "update ".$BIAOTOU."msgset set msg='".$msg_deltrade."' where type='deltrade'";
mysql_query($q);
$q = "update ".$BIAOTOU."msgset set msg='".$msg_deltradetuiguang."' where type='deltradetuiguang'";
mysql_query($q);
mysql_close($link);
echo "<script language=javascript>alert('更新成功！即将跳转到短信设置...');window.location='msg_set.php'</script>";
?>